/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

/**
 *
 * @author percynguyen92
 */
public class Monhoc
{
    private Integer maMH;
    private String ten;

    public Monhoc() {
    }

    public Monhoc(Integer maMH, String ten) {
        this.maMH = maMH;
        this.ten = ten;
    }

    public Integer getMaMH() {
        return maMH;
    }

    public void setMaMH(Integer maMH) {
        this.maMH = maMH;
    }

    public String getTen() {
        return ten;
    }

    public void setTen(String ten) {
        this.ten = ten;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (maMH != null ? maMH.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Monhoc)) {
            return false;
        }
        Monhoc other = (Monhoc) object;
        if ((this.maMH == null && other.maMH != null) || (this.maMH != null && !this.maMH.equals(other.maMH))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Model.Monhoc[ maMH=" + maMH + " ]";
    }
    
}
